Originally posted by MM4:
Here we go again with the WB.....
Server Error in '/' Application.
--------------------------------------------------------------------------------
template
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: template
Source Error:
Line 11: dtrReader = newsConn.cmdNews.ExecuteReader
Line 12: dtrReader.Read()
Line 13: strTemplate = dtrReader("template")
Line 14: strArticle_Id = CSTR(dtrReader("article_id"))
Line 15: dtrReader.Close()
Source File: D:\inetpub\wwwroot\news\topstory.aspx Line: 13
Stack Trace:
[IndexOutOfRangeException: template]
System.Data.Common.FieldNameLookup.GetOrdinal(Stri ng fieldName) +55
System.Data.SqlClient.SqlDataReader.GetOrdinal(Str ing name) +70
System.Data.SqlClient.SqlDataReader.get_Item(Strin g name) +10
ASP.topstory_aspx.Page_Load() in D:\inetpub\wwwroot\news\topstory.aspx:13
System.Web.Util.ArglessEventHandlerDelegateProxy.C allback(Object sender, EventArgs e) +10
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
Bookmarks